<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>knet: E:/knet-git/knet/knet/loop_balancer.c 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">knet
   &#160;<span id="projectnumber">1.4.5</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="modules.html"><span>模块</span></a></li>
      <li><a href="annotated.html"><span>结构体</span></a></li>
      <li class="current"><a href="files.html"><span>文件</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>文件列表</span></a></li>
      <li><a href="globals.html"><span>全局定义</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_4e74998c9a9305a116abc25fcf9a1edb.html">knet-git</a></li><li class="navelem"><a class="el" href="dir_a1c045b39f32066568ae964b52db514f.html">knet</a></li><li class="navelem"><a class="el" href="dir_f76d03789f0b12416cfffea59e2ed47d.html">knet</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">结构体</a> &#124;
<a href="#typedef-members">类型定义</a> &#124;
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">loop_balancer.c 文件参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="a00080_source.html">loop_balancer.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="a00073_source.html">list.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="a00090_source.html">misc.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="a00077_source.html">loop.h</a>&quot;</code><br />
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
结构体</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00031.html">_loop_info_t</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00029.html">_loop_balancer_t</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
类型定义</h2></td></tr>
<tr class="memitem:a4ae76cfed863999ec747314b93b9287d"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="a00031.html">_loop_info_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00079_a4ae76cfed863999ec747314b93b9287d.html#a4ae76cfed863999ec747314b93b9287d">loop_info_t</a></td></tr>
<tr class="separator:a4ae76cfed863999ec747314b93b9287d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:ga4211b2d32e1a7447e479b9727dce61d4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00056_abd3f964265beb2f8984e76f44fb5ea33.html#abd3f964265beb2f8984e76f44fb5ea33">kloop_balancer_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00118_ga4211b2d32e1a7447e479b9727dce61d4.html#ga4211b2d32e1a7447e479b9727dce61d4">knet_loop_balancer_create</a> ()</td></tr>
<tr class="memdesc:ga4211b2d32e1a7447e479b9727dce61d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">创建负载均衡器  <a href="a00118_ga4211b2d32e1a7447e479b9727dce61d4.html#ga4211b2d32e1a7447e479b9727dce61d4">更多...</a><br /></td></tr>
<tr class="separator:ga4211b2d32e1a7447e479b9727dce61d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6fcdd378027b0705cd2e279601985609"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00118_ga6fcdd378027b0705cd2e279601985609.html#ga6fcdd378027b0705cd2e279601985609">knet_loop_balancer_destroy</a> (<a class="el" href="a00056_abd3f964265beb2f8984e76f44fb5ea33.html#abd3f964265beb2f8984e76f44fb5ea33">kloop_balancer_t</a> *balancer)</td></tr>
<tr class="memdesc:ga6fcdd378027b0705cd2e279601985609"><td class="mdescLeft">&#160;</td><td class="mdescRight">销毁负载均衡器  <a href="a00118_ga6fcdd378027b0705cd2e279601985609.html#ga6fcdd378027b0705cd2e279601985609">更多...</a><br /></td></tr>
<tr class="separator:ga6fcdd378027b0705cd2e279601985609"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga647f8a2d39c97c8759f8768ebc612b98"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00118_ga647f8a2d39c97c8759f8768ebc612b98.html#ga647f8a2d39c97c8759f8768ebc612b98">knet_loop_balancer_attach</a> (<a class="el" href="a00056_abd3f964265beb2f8984e76f44fb5ea33.html#abd3f964265beb2f8984e76f44fb5ea33">kloop_balancer_t</a> *balancer, <a class="el" href="a00056_a97fc76209a58362019f1ded9169e397f.html#a97fc76209a58362019f1ded9169e397f">kloop_t</a> *loop)</td></tr>
<tr class="memdesc:ga647f8a2d39c97c8759f8768ebc612b98"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加事件循环到负载均衡器  <a href="a00118_ga647f8a2d39c97c8759f8768ebc612b98.html#ga647f8a2d39c97c8759f8768ebc612b98">更多...</a><br /></td></tr>
<tr class="separator:ga647f8a2d39c97c8759f8768ebc612b98"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga705fd81a537d18cfe1b66df9d15b6c4e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00118_ga705fd81a537d18cfe1b66df9d15b6c4e.html#ga705fd81a537d18cfe1b66df9d15b6c4e">knet_loop_balancer_detach</a> (<a class="el" href="a00056_abd3f964265beb2f8984e76f44fb5ea33.html#abd3f964265beb2f8984e76f44fb5ea33">kloop_balancer_t</a> *balancer, <a class="el" href="a00056_a97fc76209a58362019f1ded9169e397f.html#a97fc76209a58362019f1ded9169e397f">kloop_t</a> *loop)</td></tr>
<tr class="memdesc:ga705fd81a537d18cfe1b66df9d15b6c4e"><td class="mdescLeft">&#160;</td><td class="mdescRight">从负载均衡器内删除事件循环  <a href="a00118_ga705fd81a537d18cfe1b66df9d15b6c4e.html#ga705fd81a537d18cfe1b66df9d15b6c4e">更多...</a><br /></td></tr>
<tr class="separator:ga705fd81a537d18cfe1b66df9d15b6c4e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab16d1483a612eba09677784480b5e1e7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00056_a97fc76209a58362019f1ded9169e397f.html#a97fc76209a58362019f1ded9169e397f">kloop_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00079_ab16d1483a612eba09677784480b5e1e7.html#ab16d1483a612eba09677784480b5e1e7">knet_loop_balancer_choose</a> (<a class="el" href="a00056_abd3f964265beb2f8984e76f44fb5ea33.html#abd3f964265beb2f8984e76f44fb5ea33">kloop_balancer_t</a> *balancer)</td></tr>
<tr class="memdesc:ab16d1483a612eba09677784480b5e1e7"><td class="mdescLeft">&#160;</td><td class="mdescRight">负载均衡 - 选取一个kloop_t实例  <a href="a00079_ab16d1483a612eba09677784480b5e1e7.html#ab16d1483a612eba09677784480b5e1e7">更多...</a><br /></td></tr>
<tr class="separator:ab16d1483a612eba09677784480b5e1e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga476aeb9c1ab507c2af581b9ceb66b261"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00118_ga476aeb9c1ab507c2af581b9ceb66b261.html#ga476aeb9c1ab507c2af581b9ceb66b261">knet_loop_balancer_set_data</a> (<a class="el" href="a00056_abd3f964265beb2f8984e76f44fb5ea33.html#abd3f964265beb2f8984e76f44fb5ea33">kloop_balancer_t</a> *balancer, void *data)</td></tr>
<tr class="memdesc:ga476aeb9c1ab507c2af581b9ceb66b261"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置用户数据  <a href="a00118_ga476aeb9c1ab507c2af581b9ceb66b261.html#ga476aeb9c1ab507c2af581b9ceb66b261">更多...</a><br /></td></tr>
<tr class="separator:ga476aeb9c1ab507c2af581b9ceb66b261"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf4fab99f76529f2381418ff4f0692a68"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00118_gaf4fab99f76529f2381418ff4f0692a68.html#gaf4fab99f76529f2381418ff4f0692a68">knet_loop_balancer_get_data</a> (<a class="el" href="a00056_abd3f964265beb2f8984e76f44fb5ea33.html#abd3f964265beb2f8984e76f44fb5ea33">kloop_balancer_t</a> *balancer)</td></tr>
<tr class="memdesc:gaf4fab99f76529f2381418ff4f0692a68"><td class="mdescLeft">&#160;</td><td class="mdescRight">取得用户数据  <a href="a00118_gaf4fab99f76529f2381418ff4f0692a68.html#gaf4fab99f76529f2381418ff4f0692a68">更多...</a><br /></td></tr>
<tr class="separator:gaf4fab99f76529f2381418ff4f0692a68"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2015年 七月 27日 星期一 14:33:20 , 为 knet使用  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
